home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
write.z
/
write
Wrap
Text File
|
1998-10-20
|
7KB
|
133 lines
WWWWRRRRIIIITTTTEEEE((((1111)))) WWWWRRRRIIIITTTTEEEE((((1111))))
NNNNAAAAMMMMEEEE
write - write to another user
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
wwwwrrrriiiitttteeee user [ line ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_w_r_i_t_e copies lines from your terminal to that of another user. When
first called, it sends the message:
MMMMeeeessssssssaaaaggggeeee ffffrrrroooommmm _y_o_u_r_n_a_m_e ((((ttttttttyyyy??)))) [ _d_a_t_e ]............
to the person you want to talk to. When it has successfully completed
the connection, it also sends two bells to your own terminal to indicate
that what you are typing is being sent.
The recipient of the message should write back at this point.
Communication continues until an end of file is read from the terminal,
an interrupt is sent, or the recipient has executed "mesg n". At that
point _w_r_i_t_e writes EEEEOOOOTTTT on the other terminal and exits.
If you want to write to a user who is logged in more than once, the _l_i_n_e
argument may be used to indicate which line or terminal to send to (e.g.,
ttttttttyyyy00000000); otherwise, the first writable instance of the user found in
////vvvvaaaarrrr////aaaaddddmmmm////uuuuttttmmmmpppp is assumed and the following message posted:
_u_s_e_r is logged on more than one place.
You are connected to "_t_e_r_m_i_n_a_l".
Other locations are:
_t_e_r_m_i_n_a_l
Permission to write may be denied or granted by use of the _m_e_s_g(1)
command. Writing to others is normally allowed by default. Certain
commands, such as _p_r(1) disallow messages in order to prevent
interference with their output. However, if the user has super-user
permissions, messages can be forced onto a write-inhibited terminal.
If the character !!!! is found at the beginning of a line, _w_r_i_t_e calls the
shell to execute the rest of the line as a command.
_wwww_rrrr_iiii_tttt_eeee processes supplementary code set characters according to the locale
specified in the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable [see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)].
It will detect non-printable characters before sending them to the user's
terminal. Control characters will appear as a `_^^^^' followed by the
appropriate ASCII character; characters with the high-order bit set will
appear in meta notation. For example, `_\\\\_0000_0000_3333' is displayed as `_^^^^_CCCC' and
`_\\\\_3333_7777_2222' as `_MMMM_----_zzzz'.
The following protocol is suggested for using _w_r_i_t_e: when you first
_w_r_i_t_e to another user, wait for them to _w_r_i_t_e back before starting to
send. Each person should end a message with a distinctive signal (i.e.,
((((oooo)))) for ``over'') so that the other person knows when to reply. The
PPPPaaaaggggeeee 1111
WWWWRRRRIIIITTTTEEEE((((1111)))) WWWWRRRRIIIITTTTEEEE((((1111))))
signal ((((oooooooo)))) (for ``over and out'') is suggested when conversation is to
be terminated.
FFFFIIIILLLLEEEESSSS
/var/adm/utmp to find user
/sbin/sh to execute !!!!
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee
language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).]
SSSSEEEEEEEE AAAALLLLSSSSOOOO
mail(1), mesg(1), pr(1), sh(1), who(1).
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
_UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_UUUU_ssss_eeee_rrrr _iiii_ssss _nnnn_oooo_tttt _llll_oooo_gggg_gggg_eeee_dddd _oooo_nnnn_....
if the person you are trying to _wwww_rrrr_iiii_tttt_eeee to is not logged on.
_UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_PPPP_eeee_rrrr_mmmm_iiii_ssss_ssss_iiii_oooo_nnnn _dddd_eeee_nnnn_iiii_eeee_dddd_....
if the person you are trying to _wwww_rrrr_iiii_tttt_eeee to denies that permission
(with _mmmm_eeee_ssss_gggg).
_UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_WWWW_aaaa_rrrr_nnnn_iiii_nnnn_gggg_:::: _cccc_aaaa_nnnn_nnnn_oooo_tttt _rrrr_eeee_ssss_pppp_oooo_nnnn_dddd_,,,, _ssss_eeee_tttt _mmmm_eeee_ssss_gggg _----_yyyy_....
if your terminal is set to _mmmm_eeee_ssss_gggg _nnnn and the recipient cannot respond
to you.
_UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_CCCC_aaaa_nnnn _nnnn_oooo _llll_oooo_nnnn_gggg_eeee_rrrr _wwww_rrrr_iiii_tttt_eeee _tttt_oooo _uuuu_ssss_eeee_rrrr_....
if the recipient has denied permission (_mmmm_eeee_ssss_gggg _nnnn) after you had
started writing.
PPPPaaaaggggeeee 2222